package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 包装详情对象 ecd_package_detail
 * 
 * @author ruoyi
 * @date 2025-11-08
 */
public class EcdPackageDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long ptid;

    /** 包材名称 */
    @Excel(name = "包材名称")
    private String packName;

    /** 用量 */
    @Excel(name = "用量")
    private BigDecimal packQty;

    /** 损耗(%) */
    @Excel(name = "损耗(%)")
    private BigDecimal packLoss;

    /** 单价(元) */
    @Excel(name = "单价(元)")
    private BigDecimal packUnitPrice;

    /** 小计(元) */
    @Excel(name = "小计(元)")
    private BigDecimal packSubtotal;

    /** 全局唯一标识 */
    @Excel(name = "全局唯一标识")
    private String uid;

    /** 更新日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 删除日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPtid(Long ptid) 
    {
        this.ptid = ptid;
    }

    public Long getPtid() 
    {
        return ptid;
    }
    public void setPackName(String packName) 
    {
        this.packName = packName;
    }

    public String getPackName() 
    {
        return packName;
    }
    public void setPackQty(BigDecimal packQty) 
    {
        this.packQty = packQty;
    }

    public BigDecimal getPackQty() 
    {
        return packQty;
    }
    public void setPackLoss(BigDecimal packLoss) 
    {
        this.packLoss = packLoss;
    }

    public BigDecimal getPackLoss() 
    {
        return packLoss;
    }
    public void setPackUnitPrice(BigDecimal packUnitPrice) 
    {
        this.packUnitPrice = packUnitPrice;
    }

    public BigDecimal getPackUnitPrice() 
    {
        return packUnitPrice;
    }
    public void setPackSubtotal(BigDecimal packSubtotal) 
    {
        this.packSubtotal = packSubtotal;
    }

    public BigDecimal getPackSubtotal() 
    {
        return packSubtotal;
    }
    public void setUid(String uid) 
    {
        this.uid = uid;
    }

    public String getUid() 
    {
        return uid;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setDeleteDate(Date deleteDate) 
    {
        this.deleteDate = deleteDate;
    }

    public Date getDeleteDate() 
    {
        return deleteDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ptid", getPtid())
            .append("packName", getPackName())
            .append("packQty", getPackQty())
            .append("packLoss", getPackLoss())
            .append("packUnitPrice", getPackUnitPrice())
            .append("packSubtotal", getPackSubtotal())
            .append("uid", getUid())
            .append("updateDate", getUpdateDate())
            .append("createDate", getCreateDate())
            .append("deleteDate", getDeleteDate())
            .toString();
    }
}
